package practice.library.webmagic.persistence

import us.codecraft.webmagic.processor.PageProcessor
import us.codecraft.webmagic.selector.Html
import utility.CustomLogger

import scala.util._

/**
  * Created by lovepocky on 16/6/20.
  */
trait SaveToCassandra extends CustomLogger {

  def primarySave(url: String, html: Html): Try[_] = {
    loggers.consoleWithFile.info(s"this page is being persisted: ${url}")
    Success(1)
  }

}


